<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ include file="/commons/pages/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${naviString}</title>
<link href="${ctx}/commons/styles/themes/blue/styles/style.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/commons/scripts/jquery-ui/themes/redmond/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center">
  <div align="left" style="width:99%">
    <div align="left" class="nav">${naviString}</div>
    <br />
    <table width="100%" border="0" align="left" cellpadding="1" cellspacing="1" class="datagrid">
      <tr>
        <th colspan="2">促销动态</th>
      </tr>
      <tr>
        <td width="15%" class="title_item"><strong>活动标题：</strong></td>
        <td width="85%">${hf.map.title}</td>
      </tr>
      <tr>
        <td class="title_item"><strong>活动简介：</strong></td>
        <td><div style="width: 600px;">${hf.map.content}</div></td>
      </tr>
      <tr>
        <td class="title_item"><strong>宣传图片：</strong></td>
        <td><c:if test="${not empty (hf.map.accessory.save_url)}"><br/>
            <img src="${ctx}/${hf.map.accessory.save_url}" title="${hf.map.accessory.file_name}" /><br />
          </c:if>
        </td>
      </tr>
      <tr>
        <td class="title_item"><strong>图片说明：</strong></td>
        <td>${hf.map.accessory.description}</td>
      </tr>
      <tr>
          <td class="title_item"><strong>开始时间：</strong></td>
          <td><fmt:formatDate value="${hf.map._begin_date}" pattern="yyyy-MM-dd" var="begin_date" />${begin_date}</td>
        </tr>
        <tr>
          <td class="title_item"><strong>结束时间：</strong></td>
          <td><fmt:formatDate value="${hf.map._end_date}" pattern="yyyy-MM-dd" var="end_date" />${end_date}</td>
        </tr>
      <tr>
        <td class="title_item"><strong>浏览次数：</strong></td>
        <td>${hf.map.view_count}</td>
      </tr>
      <tr>
        <td class="title_item"><strong>排序值：</strong></td>
        <td>${hf.map.order_value}</td>
      </tr>
      <tr>
        <td class="title_item"><strong>信息状态：</strong></td>
        <td><c:forEach var="cur" items="${infoStateList}">
        		<c:if test="${cur.dictionary_value eq hf.map.info_state}">${cur.dictionary_desc_cn}</c:if>
            </c:forEach>
        </td>
      </tr>
      <tr>
        <td class="title_item"><strong>启用HOT标志：</strong></td>
        <td><c:if test="${hf.map.is_hot eq 1}">是</c:if><c:if test="${hf.map.is_hot eq 0}">否</c:if></td>
      </tr>
      <tr>
          <td colspan="2"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" class="datagrid">
              <tr class="title_tr">
	            <td align="center" colspan="2">活动内容说明</td>
		      </tr>
              <tr class="title_tr">
                <td nowrap="nowrap" width="30%">说明项</td>
                <td nowrap="nowrap" width="70%">说明内容</td>
              </tr>
              <tbody>
                <c:forEach var="cur" items="${hf.map.promotionDescList}">
                  <tr>
                    <td align="left">${cur.intro_item}</td>
                    <td align="left">
                    	<html-el:textarea property="intro_content" style="width:85%;border:none;" value="${cur.intro_content}" />
                    </td>
                  </tr>
                </c:forEach>
              </tbody>
            </table></td>
        </tr>
      <tr>
        <td colspan="2" align="center"><html-el:button property="back" value=" 返 回 " onclick="history.back();" styleClass="ui-state-default ui-corner-all" style="cursor:pointer;" /></td>
      </tr>
    </table>
  </div>
</div>
<script type="text/javascript" src="${ctx}/commons/scripts/jquery.js"></script>
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
	$("input[type='submit'],input[type='reset'],input[type='button']").css({border: "1px solid"});
	
	$("textarea").each(function(){
		this.onpropertychange = function () {
			if (this.scrollHeight > 16) this.style.posHeight = this.scrollHeight;
		};
	}).css({color:"#000"});

});

//]]></script>
</body>
</html>
